﻿#pragma once

#include <stdint.h>
#include "base/core/singleton.h"
#include "Common/TableExDefine.h"
#include "Common/ComTypeDefine.h"
//区域配置
class TitleCfg : public ManualSingleton < TitleCfg >
{
	friend class ManualSingleton < TitleCfg >;
public:
	bool Init();
	void UnInit();
public:
	TitleCfg();
	virtual ~TitleCfg();
	VEC_INT32* GetTitleParamByTitleID(uint32_t titleID);
private:
	bool ProcessArea();
private:
	//藏宝图的区域ID列表
	MAP_UINT32_VEC_INT32 m_mapTitleParam;
};

#define  g_MakeTitleCfgMgr() (TitleCfg::Instance())
#define  g_GetTitleCfgMgr()  (TitleCfg::GetInstance())
#define  g_DelTitleCfgMgr()  (TitleCfg::Destroy())